package net.zjitc.arrays;

/**
 * 输出上三角
 */
public class Demo {
    public static void main(String[] args) {
      /*  for (int i = 0; i <10 ; i++) {
            for (int j = 0; j <i ; j++) {
                System.out.print("*");
            }
            System.out.println();
        }*/
      int[][] arr = {{1,0,0,0},{1,2,0,0},{2,1,3,0},{1,2,1,4}};
      TriangularMatrix triangularMatrix = new TriangularMatrix();
      triangularMatrix.compress(arr);
        int value = triangularMatrix.getValue(2, 1);
        System.out.println();

    }
}
